﻿using AutoMapper;
using B.S.Backtrack.Domain.Entities;
using B.S.Backtrack.Write.API.Application.Command.Cultures;
using B.S.Backtrack.Write.API.Application.Command.Firms;
using B.S.Backtrack.Write.API.Application.Command.Image;
using B.S.Backtrack.Write.API.Application.Command.Proces;
using B.S.Backtrack.Write.API.Application.Command.Product;
using B.S.Backtrack.Write.API.Application.Command.Sla;
using B.S.Backtrack.Write.API.Application.Command.Supp;

namespace B.S.Backtrack.Write.API
{
    public class MappingProfile:Profile
    {
        public MappingProfile() 
        {
            CreateMap<CreateProductCommand,Products>().ReverseMap();
            CreateMap<UpdateProductCommand,Products>().ReverseMap();
            CreateMap<CreateImageCommand,Picture>().ReverseMap();
            CreateMap<CreateCultureCommand,Culture>().ReverseMap();
            CreateMap<CreateHealthCommand,Health>().ReverseMap();
            CreateMap<UpdateHealthCommand,Health>().ReverseMap();
            CreateMap<CreateFirmCommand,Firm>().ReverseMap();
            CreateMap<CreateSlaughterCommand,Slaughter>().ReverseMap();
            CreateMap<CreateSlaFirmCommand,Firm>().ReverseMap();
            CreateMap<CreateProcessingCommand,Processing>().ReverseMap();
            CreateMap<CreateSupplierCommand,Supplier>().ReverseMap();
        }
    }
}
